Payment Methods
Here you will find all the services associated with our platform.
Details
| Method | Image | payment_method | Solutions | 
|---|---|---|---|
| Mercado Pago QR | ![]()  | mercadopagoqr_payment | QR/Wallet | 
| MACH Pay | ![]()  | mach_payment | QR/Wallet | 
| Paga con tu Banco | ![]()  | etpay_payment | Transfer | 
| Coinbase | ![]()  | coinbase_payment | Crypto | 
| WebPay | ![]()  | webpay_payment | Cards | 
Create a new payment
POST - https://url.base/api/payment/new
Endpoint to create a new payment. To create a new payment request, 
the request must be built with the following parameters.
*Required fields
| Field | Type | Description | 
|---|---|---|
| *currency | String | ISO currency code # countries-and-currencies | 
| *country | String | International country format # countries-and-currencies | 
| *amount | Integer | Transaction amount | 
| *clientName | String | Client Fullname (First Name - Last Name) | 
| *clientEmail | String | Client Email | 
| *clientPhone | String | Client Phone | 
| *clientDocument | String | Client DNI | 
| *paymentMethod | String | Available payment methods Learn about the methods available for your commerce | 
| *urlConfirmation | Link | URL redirection after payment is completed | 
| *urlFinal | Link | URL redirection after payment is completed | 
| *urlRejected | Link | URL redirection in case the transaction is reject | 
| *order | String | Identifier of the payment to be associated. The "order" field must be unique and non-repetitive | 
| *sign | String | The signature of the parameters is unique for each transaction | 
| isIframePay | Boolean | If 'isIframePay' is TRUE, an iframe and a qr code will be provided for it to be integrated within the merchant's page. If 'isIframePay' is FALSE, you will receive a URLPAY, which should redirect the customer to the Prontopaga payment system | 
info
As a recommendation, this information should come from the client's profile.
Example Request
{
    $data = [
        "currency" => "CLP",
        "country" => "CL",
        "amount" => 1000,
        "clientName" => "Demo",
        "clientEmail" => "[email protected]",
        "clientPhone" => "999999999",
        "clientDocument" => "999999999",
        "paymentMethod" => "webpay_payment",
        "urlConfirmation" => "webhook",
        "urlFinal" => "url rediret",
        "urlreject" => "url reject",
        "order" => "order id",
        "sing" => "Signature of the parameters",
        "isIframePay" => true (or false)
    ];
}
info
By default, the isIframePay field is (false), this field is not required.
Example of a successful payment creation response
ProntoPaga response to the payment request is the UID of the transaction and the URL to which you must redirect the user.

Example of a successful isIframePay True
{
    "qrCode"= [string] // iFrame link to embed in your commerce
    "urlPay"= [string] // Link to process the payment
    "uid": [string] // Payment identifier in the system
}
Example of a successful isIframePay False
{
    "urlPay"= [string] // Link to process the payment
    "uid": [string] // Payment identifier in the system
}




